package org.spring.boot.jdbctemplate.ws;

import org.spring.boot.jdbctemplate.service.GenerationArrestpiontService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: eastcom
 * @desc:
 **/
@RestController
@RequestMapping("/import")
public class ImportCsvWs {

	@Autowired
	private GenerationArrestpiontService service;

	@RequestMapping(value = "/csv", method = RequestMethod.GET)
	public void importCSV(){
		service.run();
	}
}
